package com.yty.newconsult;

import com.yty.newconsult.server.MyWsServer;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.scheduling.annotation.EnableScheduling;

@EnableScheduling//支持定时任务
@MapperScan("com.yty.newconsult.dao")
@SpringBootApplication(scanBasePackages = "com.yty.newconsult")
public class NewConsultApplication {

    public static void main(String[] args) throws Exception{
        SpringApplication.run(NewConsultApplication.class, args);
        MyWsServer server = new MyWsServer();
        server.start();
    }

}
